xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
  xml.channel do
    xml.title "BeyondRails"
    xml.description "BeyondRails Rails 中文 社区 博客 教程 资源 论坛"
    xml.link formatted_blogs_url(:rss)

    for b in @rss_blogs
      xml.item do
        xml.title h(b.title)
        xml.author h(b.user.login)
        xml.description bbcode2html(b.content) + "<br/><a href='" + blog_url(b) +"#comments'>查看评论</a>"
        xml.pubDate b.created_at.to_s(:rfc822)
        xml.link blog_url(b)
        xml.guid blog_url(b)
      end
    end
  end
end